package com.fishery.search.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description ElasticSearch参数配置
 * @author ghost
 * @since 2021-1-27
 */
@Configuration
@ConfigurationProperties(prefix = "fishery.elasticsearch")
public class MyElasticSearchProperties {

	private String hostname;
	private int port;
	private String protocol;
	private String index;

	public String getHostname() {
		return hostname;
	}

	public void setHostname(String hostname) {
		this.hostname = hostname;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}
}
